from django.conf.urls import *

from account.views import UserCreateView, UserListView, UserUpdateView, UserDeleteView, UserDetailView, \
    UserAnswerListView, UserQuestionListView, user_count, UserFocusCreateView, UserFocusListView, UserFocusDeleteView, \
    PostUserTagView, UserFocusedListView

urlpatterns = [
    url(r'^create/$', UserCreateView.as_view(), name='user_create'),
    url(r'^list/$', UserListView.as_view(), name='user_list'),
    url(r'^(?P<phone>\d+)/detail/$', user_count, name='user_detail'),
    url(r'^(?P<pk>\d+)/update/$', UserUpdateView.as_view(), name='user_update'),
    url(r'^(?P<pk>\d+)/delete/$', UserDeleteView.as_view(), name='user_delete'),

    url(r'^my_questions/$', UserQuestionListView.as_view(), name='user_questions'),
    url(r'^my_answers/$', UserAnswerListView.as_view(), name='user_answers'),
    #url(r'^my_count/$', user_count, name='my_count_view'),

    url(r'^focus/create$', UserFocusCreateView.as_view()),
    url(r'^focus/list$', UserFocusListView.as_view(), ),
    url(r'^focus/delete/(?P<focused>\d+)$', UserFocusDeleteView.as_view()),

    url(r'^exchange_expertise/$', PostUserTagView.as_view()),
    url(r'focused/$', UserFocusedListView.as_view()),

]
